package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Organization;

public interface OrganizationService extends IService<Organization> {
    
    // 注册组织
    boolean registerOrganization(Organization organization);
    
    // 更新组织信息
    boolean updateOrganization(Organization organization);
    
    // 审核组织
    boolean reviewOrganization(Long id, Integer status, String rejectReason, Long reviewerId);
    
    // 禁用/启用组织
    boolean toggleOrganizationStatus(Long id, boolean enable);
    
    // 删除组织
    boolean deleteOrganization(Long id);
    
    // 批量删除组织
    boolean batchDeleteOrganizations(Long[] ids);
    
    // 分页查询组织列表
    Page<Organization> getOrganizationList(Integer pageNum, Integer pageSize, String keyword, 
            Integer type, Integer level, Integer status);
    
    // 获取组织详情
    Organization getOrganizationInfo(Long id);
} 